﻿@model Everynet.Models.PlanModel
@{
    ViewBag.Title = "PlanType";
    Layout = "~/Views/Shared/_AdminLayout.cshtml";
}
<br />
<u class="headerColor">Plan Type</u>
<p>
    @Html.ActionLink("Create New", "CreateNewPlanType")&nbsp;&nbsp;&nbsp;&nbsp;
    @Html.ActionLink("Dashboard", "Dashboard", "Admin")
</p>
@using (Html.BeginForm())
{    
    <p>
        Name: @Html.TextBox("SearchString")&nbsp;&nbsp;
        <input type="submit" value="Filter" /></p> 
}
@if (TempData["message"] != null)
{
    <div class="text-success">
        @TempData["message"]
    </div>
}
<table class="table-data" cellpadding="0" cellspacing="0" border="0" width="100%">
    <thead>
        <tr>
            <th align="left" class="header grdIDWidth">
                ID
            </th>
            <th align="left" class="header">
                Name
            </th>
            <th class="grdEditWidth">
            </th>
        </tr>
    </thead>
    <tbody>
        @foreach (var item in Model.PlanTypeList)
        {
            <tr>
                <td>
                    @Html.DisplayFor(modelItem => item.PlanID)
                </td>
                <td>
                    @Html.DisplayFor(modelItem => item.PlanTypes)
                </td>
                <td>@Html.ActionLink("Edit", "EditPlanType", new { id = item.PlanID }) |
                    @Html.ActionLink("Delete", "DeletePlanType", new { id = item.PlanID }, new { onclick = "return confirm('Are you sure you wish to delete?');" })
                </td>
            </tr>
        }
    </tbody>
</table>
<script src="@Url.Content("~/Scripts/TableSort.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/tablepaging.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/admin/common.js")" type="text/javascript"></script>

